﻿using System;
using System.ServiceModel;

namespace OCXS.OCXSServiceLibrary.OPCXMLDA10 {

    [MessageContract(
        WrapperName = "SubscriptionPolledRefreshResponse", 
        WrapperNamespace = "http://opcfoundation.org/webservices/XMLDA/1.0/", 
        IsWrapped = true)]
    public class SubscriptionPolledRefreshResponse {

        [MessageBodyMember(Name = "SubscriptionPolledRefreshResult", Order = 0)]
        public OCXS.OCXSServiceLibrary.OPCXMLDA10.ReplyBase SubscriptionPolledRefreshResult;

        [MessageBodyMember(Name = "InvalidServerSubHandles", Order = 1)]
        public string[] InvalidServerSubHandles;

        [MessageBodyMember(Name = "RItemList", Order = 2)]
        public SubscribePolledRefreshReplyItemList[] RItemList;

        [MessageBodyMember(Name = "Errors", Order = 3)]
        public OPCError[] Errors;

        [MessageBodyMember(Name = "DataBufferOverflow", Order = 4)]
        public bool DataBufferOverflow;

        public SubscriptionPolledRefreshResponse() {
        }

        public SubscriptionPolledRefreshResponse(OCXS.OCXSServiceLibrary.OPCXMLDA10.ReplyBase SubscriptionPolledRefreshResult, string[] InvalidServerSubHandles, SubscribePolledRefreshReplyItemList[] RItemList, OPCError[] Errors, bool DataBufferOverflow) {
            this.SubscriptionPolledRefreshResult = SubscriptionPolledRefreshResult;
            this.InvalidServerSubHandles = InvalidServerSubHandles;
            this.RItemList = RItemList;
            this.Errors = Errors;
            this.DataBufferOverflow = DataBufferOverflow;
        }
    }
}
